const common = require('./common');

const url = {
  bindPhoneNumber: "/zgb/v1/mine/bindPhoneNumber", //绑定手机号
  // getPersonInfo: "/zgb/v1/mine/getInfo", //获取个人信息
  getPersonInfo: "/zgb/v2/mine/getInfo", //获取个人信息
  getPhoneVerificationCode: "/zgb/v1/mine/getPhoneVerificationCode", //获取手机验证码
  getRoleList: "/zgb/v2/mine/getRoleList", //获取我的角色列表
}

const bindPhoneNumber = (data) => {
  return common.req(url.bindPhoneNumber, data);
}
const getPersonInfo = (data) => {
  return common.req(url.getPersonInfo, data, 'get');
}
const getPhoneVerificationCode = (data) => {
  return common.req(url.getPhoneVerificationCode, data, 'get');
}
const getRoleList = (data) => {
  return common.req(url.getRoleList, data, 'get');
}


export default {
  bindPhoneNumber,
  getPersonInfo,
  getPhoneVerificationCode,
  getRoleList
}